<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <title>我的主题 - 会员中心 -  {:C('YTATA_SITE_NAME')}</title>
  <link href="__ROOT__/{:C('YTATA_TPL_DIR')}/public/css/user.css" rel="stylesheet" type="text/css">
  <include file="public:header" />
  <div class="usermain">
    <div class="mleft">
      <include file="left_nav" />
    </div>
    <div class="mright">
      <div class="mbox">
        <div class="utopt">
          <div class="tit">我的讨论</div>
          <a class="snav <if condition="$mods eq '1'">select</if>" href="{:RU('user/bbs',array('mods'=>1))}">我的主题</a>
          <a class="snav <if condition="$mods eq '2'">select</if>" href="{:RU('user/bbs',array('mods'=>2))}">我的回帖</a>
          <div class="clear"></div>
        </div>
        <!--问题列表 -->
        <eq name="mods" value="1">
          <div class="myquestion">
            <!-- 读取问题 -->
            <ytata:bbs listname="bbs" uid="$uid"  page="1" num="10"/>
            <volist name="bbs.list" id="li">
              <div class="qlist">
 
                <div class="td3">
                  <h4 class="link_gray3"><a href="{$li.url}" target="_blank">{$li.content_cut}</a></h4>
                  
                  <div class="author link_gray3">
                    <if condition="$li.replyuid gt 0 ">
                      <a href="{$li.replyuser.user_url}"  target="_blank">{$li.replyuser.nickname}</a> <span> 回复于 {$li.replytimestr}</span>
                      <else />
                      <a href="{$li.adduser.user_url}" target="_blank">{$li.adduser.nickname}</a><span> 发布于 {$li.addtimestr}</span>
                    </if>
                  </div>
                  <volist name="li.tags" id="tagsli">
                    <a class="tag" href="{$tagsli.tagurl}" target="_blank">{$tagsli.tag}</a>
                  </volist>
                  <a class="del" href="{:RU('user/bbs_del',array('id'=>$li['id']))}" onClick="return confirm('你确定要删除吗？')">删除</a>
                </div>
                <div class="clear"></div>
              </div>
            </volist>
            <empty name="bbs.list">
              <div class="infoempty"> 暂时木有内容呀～～</div>
            </empty>
            <!-- -->
            <!-- -->
            <div class="uupage">{$bbs.page}</div>
        
        </eq>
        <!-- 问题列表结束-->
        
        
        <eq name="mods" value="2"><!-- 回答列表-->
          <div class="myquestion">
            
            <ytata:bbsreply listname="a" uid="$uid" page="1" num="10"/>
            <volist name="a.list" id="li">
              <div class="alist link_gray6">
                <div class="link_blue">
                  <notempty name="li.bbs">
                    <a href="{$li.bbs.url}" target="_blank">{$li.bbs.content}</a>
                    <else />
                    <a href="javascript:void(0)" target="_blank" style="text-decoration:line-through">主题已经被删除</a>
                  </notempty>
                </div>
                <div class="text substring">{$li.content}</div>
                <a href="{$li.adduser.user_url}" target="_blank">{$li.adduser.username}</a><span> 回答于 {$li.addtime_str}</span>
                <eq name="li.optimal" value="1"><span class="optimal">最佳答案</span></eq>
              </div>
            </volist>
            <empty name="a.list">
              <div class="infoempty"> 暂时木有内容呀～～</div>
            </empty>
            <!-- -->
            <div class="uupage">{$a.page}</div>
        </eq>
        
        <!-- 回答列表结束-->
      </div>
    </div>
  
  
  
  
  </div>
  <div class="clear"></div>
  </div>
  <include file="public:footer" />
  
  </body>
</html>
